<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.reapal.config.*"%>
<%@ page import="com.reapal.utils.*"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.math.BigDecimal"%>
<%@ page import="com.alibaba.fastjson.*"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<%
    //会员id
	String member_id = request.getParameter("member_id").trim();
    //绑卡id
	String bind_id = request.getParameter("bind_id").trim();
    //金额
	String total_fee = request.getParameter("total_fee").trim();

	Map<String, String> map = new HashMap<String, String>();
	map.put("merchant_id", ReapalConfig.merchant_id);
	map.put("member_id", member_id);
	map.put("bind_id", bind_id);
	  map.put("order_no", new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()));
	  map.put("transtime", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
	  map.put("currency", "156");
	  map.put("title", "yyyyy");
	  map.put("body", "yyyy");
	  map.put("member_id", member_id);
	  map.put("terminal_type", "mobile");
	  map.put("terminal_info", "dddss-daddd");
	  map.put("notify_url", ReapalConfig.notify_url);
	  map.put("member_ip", "192.168.1.83");
	  map.put("seller_email", ReapalConfig.seller_email);
	  map.put("total_fee", "1");
	  map.put("token_id", ReapalUtil.getUUID());

	String url = "/fast/bindcard/portal";

	String post = ReapalSubmit.buildSubmit(map, url);

	System.out.println("返回结果post==========>" + post);
	//解密返回的数据
	String res = Decipher.decryptData(post);
%>
<body>

	<%=res%>
</body>
</html>
